package cn.skyquant.quant4j.task.boot.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;
import java.util.Objects;

@Entity
public class Economics {
    @Id
    public int id;
    public Integer yingxiang;
    public String country;
    public Double actual;
    public Double consensus;
    public String unit;
    public String revised;
    public Integer star;
    public Double previous;
    public String dataname;
    public Date publicTime;
    public String publicTimeGmt;
    public String publicTimeCst;
    public long publicTimestamp;
    public String timeshow;
    public String timestr;
    public Integer datanameId;
    public String datename;
    public String title;
    public String statusName;
    public String statusClass;
    public Date recordTime;         //记录时间
    public String updatedTimeGmt;
    public String updatedTimeCst;
    public long updatedTimestamp;
    public int updatedNum;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Economics economics = (Economics) o;
        return id == economics.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
